<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
                        @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
		</style>
                
<script type="text/javascript">
    var t=jQuery.noConflict();
			t(document).ready(function() {
				t('#example').dataTable( {
					"sPaginationType": "full_numbers"
				} );
			} );
</script>
<!--
<div id="buscar"  >
    <form class="well form-search" action="<?php echo base_url() . "admin.php/docente/presearch" ?>" method="post" >
        <input type="text" class="input-medium search-query" name="txtsearch">
        <select id="select02"  name="tipo_busqueda" class="span2">
            <option value="1">CEDULA</option>
            <option value="2">APELLIDO</option>
            <option value="3">NOMBRE</option>
        </select>
        <button type="submit" class="btn">Buscar</button>
    </form> 
</div>
-->
<div id="agregar">
    <form class="well form-horizontal" action="<?php echo base_url() . "admin.php/docente/crear" ?>" method="post" >
        <input class="btn" type="submit"  value="Crear Nuevo Docente">


    </form> 
</div>
<br/>
<br/>

<span><h3>LISTADO DE DOCENTES</h3></span>
<div id="tablamatriculai" >
    
        <table id="example" class="table table-bordered table-striped table-condensed">
        <thead>
            <tr>
                <th>CEDULA</th>
                <th>APELLIDOS</th>
                <th>NOMBRES</th>
                <th>CATEGORIA</th>
                <th>ESTADO</th>
                <th>OPC1</th>
                <th>OPC2</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if (!empty($docentes)) {
                foreach ($docentes as $i => $row) {
                    ?>
                    <tr>
                        <td><?php echo $row['cedula_pers'] ?></td>
                        <td><?php echo $row['apellido_pers'] ?></td>
                        <td><?php echo $row['nombre_pers'] ?></td>
                        <td><?php
                            echo ($row['cat_escalofon_doc'] == 1 ? "PRINCIPAL" :
                                    ($row['cat_escalofon_doc'] == 2 ? "AGREGADO" : "INVITADO"))
                            ?></td>
                        <td><?php echo ($row['activo_doc'] == 1 ? "ACTIVO" : "PASIVO") ?></td>
                        <td>
                            <a href='<?php echo (base_url() . "admin.php/docente/actualizar/upd/" . $row['persona_ide_pers']) ?>'>
                                <i class="icon-edit"></i>Edit</a>
                        </td>
                        <td>
                            <a href='<?php echo (base_url() . "admin.php/docente/actualizar/del/" . $row['persona_ide_pers']) ?>'>
                                <i class="icon-remove"></i>Elim</a></td>

                    </tr>
                    <?php
                }
            }
            ?>
        </tbody>
    </table>        
</div>


